{{>customTypeToString}}
{{#lambda.camelcase}}encode{{classname}}{{enumName}}{{/lambda.camelcase}} : {{classname}}{{enumName}} -> Json.Encode.Value
{{#lambda.camelcase}}encode{{classname}}{{enumName}}{{/lambda.camelcase}} =
{{#isString}}    Json.Encode.string << stringFrom{{classname}}{{enumName}}{{/isString}}{{^isString}}    Json.Encode.int << intFrom{{classname}}{{enumName}}{{/isString}}